<template>
    <div class="wx-setting"></div>
</template>

<script>
import WxUtil from 'src/utils/wx';
export default {
    name: 'WxSetting',
    mounted() {
        this.getConfig();
    },
    methods: {
        getConfig() {
            let self = this;
            // wx初始化微信设置
            WxUtil.init()
                .then(wx => {
                    // 通知store，wx加载成功
                    self.$store.dispatch('wxLoaded');
                })
                .catch(err => {
                    alert(err);
                });

        },
    }
};
</script>

<style scoped>

</style>